<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <jsp:include page="/inc/head.jsp"/>
    <title>用户管理</title>
</head>
<body>
<jsp:include page="/inc/top.jsp"/>
<h3>用户更新</h3>
<hr>
<div class="container">
    <jsp:include page="inc.jsp"/>
    <h3 style="text-align: center">用户更新[${user.username}]</h3>
    <hr>
    <form action="<%=request.getContextPath()%>/admin/user?m=updateAction" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="${user.id}"/>
        <div class="form-group">
            <label  class="col-sm-2 control-label">用户昵称:</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" value="${user.nickname}" name="nickname" placeholder="用户昵称">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-2 control-label">密码:</label>
            <div class="col-sm-6">
                <input  type="password" value="${user.password}" class="form-control" name="password" placeholder="输入密码">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">更新用户</button>
                <button type="reset" class="btn btn-default">重置信息</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
